﻿using System;

namespace SystemX.Services
{
    /// <summary>
    /// Provides transactional process for a repository.
    /// </summary>
    public interface IContext:IDisposable
    {
        /// <summary>
        /// Commits a transaction if the <see cref="IContext"/> instance 
        /// was transactional.
        /// </summary>
        void Complete();
        /// <summary>
        /// Rollback a transaction
        /// </summary>
        void Rollback();
    }
}
